$(document).ready(function(){
    $(".nav img").hover(function(){
        if(this.src.indexOf('b')>0){
            this.src=this.src.replace('b_','_');
        }else{
            this.src=this.src.replace('_','b_');
        }
    },function(){
        if(this.src.indexOf('b')>0){
            
            this.src=this.src.replace('b_','_');
        }else{
            this.src=this.src.replace('_','b_');
        }
    })
	
	$("#submit").click(function(){
		var arguments;
		var index;
		var temp;
		index = window.location.href.indexOf('&');
		temp =index < 0 ? window.location.href : window.location.href.substring(0,index);
		arguments = '&date1=' + $('#date1').val() + '&date2=' + $('#date2').val();
		window.location.href = temp + arguments;
	})
	
	$('#submit3').click(function(){
		var arguments;
		var index;
		var temp;
		index = window.location.href.indexOf('&');
		temp =index < 0 ? window.location.href : window.location.href.substring(0,index);
		arguments = '&day=' + $('#day').val();
		window.location.href = temp+ arguments;
	})
	$('.content-table tr:odd').css('background','#F8F8F8');
	var bg;
	$('.content-table tr').hover(function(){
		bg = $(this).css('background');
		$(this).css('background','#EEF9FF'); 
	},function(){
		$(this).css('background',bg); 
	})
	var year=[];
	var data=[];
	var lineData=[];
	var ratio=[];
	for(var i =2000,j=0 ;i<=2020;i++,j++){
		year[j] = i;
	}
	for(var i =10,j=0 ;j<=15;j++){
		ratio[j] = Math.random();
		i=i*(ratio[j]+0.5);
		data[j] = i;
	}
	for(var i=0;i<data.length;i++){
		lineData[i]={};
	}
	for(var i=0;i<data.length;i++){
		lineData[i].y = ratio[i];
		//lineData[i].name = '%' + ratio[j];
	}
})